FROM java:8
EXPOSE 8090

VOLUME /data

# 指定开发者
MAINTAINER Dingchao

# 设置时区
RUN /bin/cp /usr/share/zoneinfo/Asia/Shanghai /etc/localtime && echo 'Asia/Shanghai' >/etc/timezone

ADD /target/online-maintance.jar  /app.jar
RUN bash -c 'touch /app.jar'
ENTRYPOINT ["java","-jar","/app.jar"]
